package work728.work5;

public class Dolphin extends Animal implements Terrestrial{
  public Dolphin() {
  }

  @Override
  public int getLegNum() {
    return  0;
  }
  public Dolphin(String name, int legNum) {
    super.getName();
    super.getLegNum();
  }
  @Override
  public void shout() {
    System.out.println(super.getName()+"\t\t"+super.getLegNum()+"\t\t\t海豚音..........");
  }

}
